projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e5e74b
)
; * src/json.c (json_parse_array): Remove unused variable.
author
Mattias Engdegård
<mattiase@acm.org>
Wed, 3 Apr 2024 07:52:55 +0000
(09:52 +0200)
committer
Mattias Engdegård
<mattiase@acm.org>
Wed, 3 Apr 2024 07:53:37 +0000
(09:53 +0200)
src/json.c
patch
|
blob
|
history
diff --git
a/src/json.c
b/src/json.c
index 3c4d90d8d0ae38a99a4dfdc38e6982a90e5003e5..33c3289b394436ca57911b604b6c9e40ddea946d 100644
(file)
--- a/
src/json.c
+++ b/
src/json.c
@@
-1415,7
+1415,6
@@
json_parse_array (struct json_parser *parser)
if (parser->available_depth < 0)
json_signal_error (parser, Qjson_object_too_deep);
- size_t number_of_elements = 0;
Lisp_Object *cdr = &result;
/* This loop collects the array elements in the object workspace
*/
@@
-1442,8
+1441,6
@@
json_parse_array (struct json_parser *parser)
}
c = json_skip_whitespace (parser);
-
- number_of_elements++;
if (c == ']')
{
parser->available_depth++;